import Vue from 'vue'
import component from './myConfirm.vue'

export default function (message, callback, config) {
  const node = document.createElement('div')
  document.body.appendChild(node)
  new Vue({
    el: node,
    data () {
      return { message, callback, config }
    },
    render: h => h(component, { props: { message, callback, config } })
  })
}